import request from '@/utils/request'

// 获取验证码
export function fetchValiCode(codeKey) {
  return request({
    url: '/authority/validate/code',
    method: 'get',
    params: { codeKey },
    responseType: 'arraybuffer'
  })
}

// 获取验证码
export function fetchValiCodeKey(data) {
  return request({
    url: '/authority/validate/codeKey',
    method: 'get',
    data
  })
}
